package meforbio.wip.pint;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;

public class ChemicalContext {
	
	public static Set<String> load(String fileIn)
	{
		Set<String> result = new HashSet<String>();
		try {
			BufferedReader in = new BufferedReader(new FileReader(fileIn));
			String ch;
			try {
				while((ch=in.readLine()) != null)
				{
					if(!ch.startsWith("#"))
					{
						result.add(ch);
					}
				}
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return result;
	}
}
